package com.sx.rabbitmqtest.bean;

public enum OrderStatus {

    PAYING(1, "已下单"), PAYED(2, "已支付"), TIMEOUT(3, "支付超时");

    private int status;
    private String name;

    OrderStatus(int status, String name) {
        this.status = status;
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "OrderStatus{" +
                "status=" + status +
                ", name='" + name + '\'' +
                '}';
    }
}
